# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=py3-pathlib2
pkgver=2.3.7
pkgrel=3
pkgdesc="Fork of pathlib aiming to support the full stdlib Python API"
url="https://github.com/jazzband/pathlib2"
arch="noarch"
license="MIT"
depends="python3 py3-six"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="pathlib2-$pkgver.tar.gz::https://github.com/jazzband/pathlib2/archive/$pkgver.tar.gz"
builddir="$srcdir/pathlib2-$pkgver"

replaces="py-pathlib2" # Backwards compatibility
provides="py-pathlib2=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
45e0006651795199f39b8e9c16eb6c551b66c483592f9aef8e6dcd1ed45766713777c8dccdbfdb0ae2c3984a138276ae2c8ca5985dc3d25a14b669fc6a88584b  pathlib2-2.3.7.tar.gz
"
